package org.example.cloud.cosumer.controller;

import jakarta.annotation.Resource;
import org.example.cloud.cosumer.service.CosumerService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther:Liu
 * @Testname:CosumerController
 * @Date:2025/9/8 15:40
 */
@RestController
@RequestMapping("/cosumer")
public class CosumerController {
    @Resource
    private CosumerService cosumerService;

    @GetMapping
    public String a(){
        return cosumerService.a();
    }

    @GetMapping("/random")
    public String aradom(){
        return cosumerService.aradom();
    }

    @GetMapping("/balance")
    public String abalance(){
        return cosumerService.abalance();
    }
}
